import { UserTypeEnum } from "@/enums/system/UserEnum";
export const STATUS_TEXT = {
  0: "未签约",
  1: "已签约",
  2: "已失效",
};
const designerTableColumnsData = [
  {
    type: "index",
    label: "序号",
    width: 60,
    align: "center",
  },
  {
    width: 150,
    label: "姓名",
    prop: "houseVO.ownName",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "地区",
    prop: "houseVO.region",
    align: "center",
    showOverflowTooltip: true,
  },

  {
    label: "小区",
    prop: "houseVO.neighborhood",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "装修预算(元)",
    prop: "houseVO.decorationBudget",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "装修形式",
    prop: "houseVO.decorationTypeText",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "状态",
    prop: "status",
    align: "center",
    customSlot: "status",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "操作",
    prop: "handle",
    fixed: "right",
    align: "center",
    showOverflowTooltip: true,
    customSlot: "handle",
  },
];
const companyTableColumnsData = [
  {
    type: "index",
    label: "序号",
    width: 60,
    align: "center",
  },
  {
    width: 150,
    label: "姓名",
    prop: "houseVO.ownName",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "地区",
    prop: "houseVO.region",
    align: "center",
    showOverflowTooltip: true,
  },

  {
    label: "小区",
    prop: "houseVO.neighborhood",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "装修预算(元)",
    prop: "houseVO.decorationBudget",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "装修形式",
    prop: "houseVO.decorationTypeText",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "状态",
    customSlot: "status",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "对接人",
    prop: "houseVO.contact",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "付费人",
    prop: "paymentUser.nickname",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "操作",
    prop: "handle",
    fixed: "right",
    align: "center",
    showOverflowTooltip: true,
    customSlot: "handle",
  },
];
/**
 * 材料商
 */
const materialTableColumnsData = [
  {
    type: "index",
    label: "序号",
    width: 60,
    align: "center",
  },
  {
    width: 150,
    label: "姓名",
    prop: "houseVO.ownName",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    label: "地区",
    prop: "houseVO.region",
    align: "center",
    showOverflowTooltip: true,
  },

  {
    label: "小区",
    prop: "houseVO.neighborhood",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "预算(元)",
    prop: "houseVO.decorationBudget",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "装修形式",
    prop: "houseVO.decorationTypeText",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "状态",
    customSlot: "status",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "负责人",
    prop: "chatUser",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "付费人",
    prop: "paymentUser.nickname",
    align: "center",
    showOverflowTooltip: true,
  },
  {
    width: 150,
    label: "操作",
    prop: "handle",
    fixed: "right",
    align: "center",
    showOverflowTooltip: true,
    customSlot: "handle",
  },
];

export const tableColumnsDataEnum = {
  [UserTypeEnum.DECORATION_COMPANY.value]: companyTableColumnsData,
  [UserTypeEnum.DESIGNER.value]: designerTableColumnsData,
  [UserTypeEnum.HOME_BUILDING_MATERIALS.value]: materialTableColumnsData,
};
